package com.smart.mip.system.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.smart.mip.system.dao.UserInfoRepository;

@Controller
public class MainFrameController {

	public static final String ENTRANCE_TYPE = "ENTRANCE_TYPE";
    public static final String NORMAL_LOGIN = "NORMAL";
    public static final String DEPLOY_LOGIN = "DEPLOY";
    public static final String LOGIN_AUTH_ERROR_MSG = "LOGIN_ERROR_MSG";
	
	@Resource
	private UserInfoRepository userInfoRepository;
	
	@RequestMapping("/home")
	public String home() {
		return "home";

	}

	@RequestMapping(value = "/admin", method = RequestMethod.GET)
	public String toAdmin() {
		return "helloAdmin";
	}

	@RequestMapping("/hello")
	public String hello() {

		return "hello";

	}
	
	@RequestMapping("/user")
	public String user() {

		return "user";

	}
	
	@RequestMapping("/hellouser")
	public String hellouser() {
		return "helloUser";
	}

	@RequestMapping("/login")
	public String login() {
		return "login";
	}
	
	@RequestMapping("/")
	public String root() {
		return "index";

	}

	@RequestMapping("/403")
	public String error() {
		return "403";
	}
}
